package com.gwb.learneureka;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableEurekaClient
@RestController
public class EClientApplication1 {

	@RequestMapping("/")
	public String hello() {
		System.out.println("eureka client1 hello");
		return "Hello client1";
	}
	@RequestMapping("/hi")
	public String hi() {
		System.out.println("eureka client1 hi");
		return "hi client1";
	}
	
	public static void main(String[] args) {
		SpringApplication.run(EClientApplication1.class, args);
	}
}
